package cn.dengta.webapp.trade.vo;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class GroupVipEquityVO implements Serializable {

	/** 用户昵称 */
	private String nickName;
	/** 用户头像 */
	private String avatar;
	/** 群VIP等级 1=VIP; 2=SVIP; 3=SSVIP; 4=SUPER VIP; 5=TOP VIP */
	private Integer groupVipLevel;
	/** 群VIP过期时间 */
	private Date groupVipExpireTime;
	/** 已购买且未过期为true,  否则为false */
	private Boolean groupVip;
	/** 群VIP 内购集合 */
	private Collection<GroupVipProductVO> vos;

	public void setGroupVipExpireTime(Date groupVipExpireTime) {
		this.groupVipExpireTime = groupVipExpireTime;
		this.groupVip = groupVipExpireTime != null && groupVipExpireTime.getTime() > System.currentTimeMillis();
	}

}
